<!--作者信息开始-->
<div class="layui-col-md12" id="userinfo">
<template v-if="login_status == 1">

        <div class="layadmin-homepage-panel layadmin-homepage-shadow">

            <div class="layui-card text-center">
                <div class="layui-card-body">
                    <div class="layadmin-homepage-pad-ver">
                        <a href="{:request()->domain()}{:url('u/index',['id'=>$index_user.id])}">

                            <template v-if="userinfo.headimgurl">
                                <img class="layadmin-homepage-pad-img" :src="userinfo.headimgurl" width="96" height="96">
                            </template>

                            <template v-else>
                                <img class="layadmin-homepage-pad-img" src="https://micuer.com/data/upload/avatar/20200409/155cb7926416fc42a859a6dd8636bab1.jpeg" width="96" height="96">
                            </template>

                        </a>
                    </div>

                    <h4 class="layadmin-homepage-font">{{userinfo.nickname}}</h4>

                    <p class="layadmin-homepage-min-font">{:config('web.web_title')}会员</p>
                    <div class="layadmin-homepage-pad-ver">
                        <a href="javascript:;" class="layui-icon layui-icon-cellphone"></a>
                        <a href="javascript:;" class="layui-icon layui-icon-vercode"></a>
                        <a href="javascript:;" class="layui-icon layui-icon-login-wechat"></a>
                        <a href="javascript:;" class="layui-icon layui-icon-login-qq"></a>
                    </div>

                    <a href="{:url('User/index')}" class="layui-btn layui-btn-fluid">个人中心</a>

                </div>
            </div>

            <p class="layadmin-homepage-about">
                关于我
            </p>
            <ul class="layadmin-homepage-list-group">
                <li class="list-group-item"><i class="layui-icon layui-icon-location"></i>
                {{userinfo.address}}
                </li>
                <li class="list-group-item">
                    {if isset($index_user)}
                    <?php $id = $index_user['id'];?>
                    {else /}
                    <?php $id = 221;?>
                    {/if}
                    <a href="{:request()->domain()}{:url('u/index',['id'=>$id])}" class="color"><i class="layui-icon layui-icon-snowflake"></i>
                        <span style="word-wrap:break-word;">
                        {:request()->domain()}{:url('u/index',['id'=>$id])}
                    </span>
                    </a>
                </li>
            </ul>
            <div class="layadmin-homepage-pad-hor">
            <span>
               <template v-if="userinfo.intro">
                   {{userinfo.intro}}
               </template>
                <template v-else>
                    {:config('web.web_title')}会员，这个伙伴暂时还没有填写简介呢
                </template>


            </span>
            </div>
            <div class="clear"></div>
        </div>

</template>


<template v-else>

    <!--未登录状态开始-->
    <div class="layadmin-homepage-panel layadmin-homepage-shadow">
        <h3>免注册登录</h3>
        <div class="layui-card text-center">
            <div class="layui-card-body">

                <div class="layadmin-homepage-pad-ver">
                    <a title="QQ一键登录" href="{:url('Authorize/qq')}" target="_blank" class=" bigger layui-icon layui-icon-login-qq"></a>
                    <a title="用户名密码登录" href="{:url('User/login')}" class=" bigger layui-icon layui-icon-cellphone"></a>
                    <!--<a href="javascript:;" class="layui-icon layui-icon-vercode"></a>-->
                    <!--<a href="javascript:;" class="layui-icon layui-icon-login-wechat"></a>-->

                </div>

                <span>第三方免注册登录</span>

            </div>
        </div>
    </div>
    <!--未登录状态结束-->
</template>
</div>


<!--作者信息结束-->
<script>
    var userinfo_url = "{:url('User/userinfo')}";
</script>
<script src="{:config('web.cdn')}/static/js/userinfo.js"></script>